

const EnumBase = require('@/common/enums/helpers/enum-base');


/**
 * 订单-桌台相关枚举
 * @author Haor
 * @created_at 2025-06-05
 * 
 */
// 订单规则类型
const TableRuleTypeEnum = new EnumBase({
    FixedFee: [1, '时段计费'],
    HourlyRate: [2, '小时计费'],
    Segmented: [3, '分段计费'],
    Package: [4, '包场计费']
}, '桌台规则类型')

// 桌台状态
const TableStatusEnum = new EnumBase({
    Idle: [1, '空闲'],
    InUse: [2, '使用中'],
    UnderMaintenance: [4, '维护中'],
}, '桌台状态')

// 订单状态
const OrderStatusEnum = new EnumBase({
    UnderWay: [0, '进行中'],
    PaymentMade: [1, '已付款'],
    Cancel: [2, '已取消'],
}, '桌台状态')


module.exports = {
    TableRuleTypeEnum,
    TableStatusEnum,
    OrderStatusEnum
}